package com.zyy.meetObject2;

public class GeometricTest {
    public static void main(String[] args) {
        GeometricTest test = new GeometricTest();
        Circle c1 = new Circle("red",1.0,2.3);
        Circle c2 = new Circle("red",1.0,2.3);
        test.displayGeometricObject(c1);

    }
    public boolean equalsArea(GeometricObject g1,GeometricObject g2){
        return g1.findArea() == g2.findArea();
    }
    public void displayGeometricObject(GeometricObject g){
        System.out.println(("几何图形的面积为：" + g.findArea()));
    }
}
